style: polish wooden board and piece materials for a natural boardgame look#2
style: polish wooden board and piece materials for a natural boardgame look#2
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 625cbd21ce
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| function handleMovementClick(r, c, player) { | ||
| if (!state.selectedPiece) { | ||
| if (state.board[r][c] !== player) return; | ||
| state.selectedPiece = [r, c]; |
There was a problem hiding this comment.
Resolve blocked human turns during movement phase
When it is the human player's turn in movement, handleMovementClick only supports selecting and moving a piece; if all human pieces are immobile (no adjacent empty node), there is no fallback path to pass/resolve the turn, so state.current stays on human and the game becomes unwinnable/stuck. This is especially visible because aiMovement already handles its own blocked case, so the deadlock is specific to human turns and can occur on reachable board states where the human still has pieces but no legal moves.
Useful? React with 👍 / 👎.
Motivation
Description
styles.cssto use softer wood gradients, subtler grain layering, increased border depth, and refined inset/drop shadows for a tabletop look.styles.cssto improve highlights, shadowing, and subtle texture layers so pieces appear polished and legible, and preserved the existing hint/selection visual styles.script.jslogic unchanged and ensured the new styles integrate with the rule-selection hints and UI elements defined inindex.htmlandstyles.css.Testing
node --check script.jswhich completed with no syntax errors (passed).python3 -m http.server 4173and confirmed the page assets loaded successfully (passed).wood-style-optimized.png) for visual verification (screenshot produced).Codex Task